<?php
include '../../core/database.php';
$db = new Database('../../database.sqlite');
$config = $db->selectOne('config');
echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";
?>
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
 <ShortName><?php echo $config['name'] ?></ShortName>
 <Description><?php echo $config['tagline'] ?></Description>
 <Url type="text/html" template="<?php echo $config['url'] ?>?show={searchTerms}"/>
</OpenSearchDescription>